import os,sys

#################### Predefined variables ####################################


#---------define source files:

#source directory (CANNOT CONTAIN SPACES):
#image_dir = "/Users/astronomycamp/iraf_analysis/qatar1_test/QATAR-1_raw_copy/"
image_dir= 'Wasp2Sample/'
#files to colalign:
import glob # 

bias=image_dir+"zero26-jun-20130008.fits"

flat=image_dir+"Rflat26-jun-20130006.fits"

#the beginning and end characters of images to do photometry on:
rootstr = "l_"
flatstr=""#.flattened.fits"
alignstr="ali.fits"

endstr = ".fits"+flatstr+alignstr


#--------- define temporary files

phot_out = "temp_photout.mag"

txdumpout = 'txdump_outputfile.tmp'

lc_out = "lc.txt"

coofnamein = 'coords.txt'
#coofnamein =image_dir+"photcoords.txt"
coofnameout = "coord_list_simple.txt"


from pyraf import iraf

# photometry parameters
fwhmpsf=4.5	
sigma = 3.5
hiclip=50.0        # High sky annulus clipping, percent
lowclip=5.0       # Low sky annulus clipping, percent
egain=""      # CCD electron gain keyword
ccdread=""     # CCD read noise keyword
amass=""    # Airmass keyword
            #obstime="TIME-OBS" # Observation time keyword
            #obstime="UTC-OBS" # Observation time keyword
obstime="UT" # Observation time keyword
             #obstime="MJD-OBS"
exp=""     # Exposure time keyword, seconds
annulus=7.0        # annulus radius
dannulus=5.0
skyvalue=25.0
################### End of predifined #########################


